import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import Index from '@/views/index'
import TraderDetail from '@/views/traderDetail/TraderDetail'
import Author from '@/views/author/Author'
import My from '@/views/my/My'
import Register from '@/views/register/Register'
import Register1 from '@/views/register/Register1'
import Register99 from '@/views/register/Register99'
import All from '@/views/all/All'
import HistoryObj from '@/views/history/History'
import Vip from '@/views/vip/Vip'
import zhihuivip from '@/views/zhihuivip/zhihuivip'
import Chosepay from '@/views/chosepay/chosepay'
import codelogin from '@/components/codelogin'
import Recommend from '@/views/recommend/recommend'
import Tuijian from '@/views/tuijian/tuijian'
import zhihuijingli from '@/views/zhihuijingli/zhihuijingli'
import QrcodeTuijian from '@/views/qrcodeTuijian/qrcodeTuijian'
import QrcodeVipTuijian from '@/views/qrcodeVipTuijian/qrcodeVipTuijian'
import Tuiguang from '@/views/tuiguang/tuiguang'
import PayOrder from '@/views/payOrder/payOrder'
import Recharge from '@/views/recharge/recharge'
import Tixian from '@/views/tixian/tixian'
import Profile from '@/views/profile/profile'
import City from '@/views/city/city'

Vue.use(Router)

export default new Router({
  mode:'history',
  routes: [
    {
      path: '/',
      name: 'Index',
      component: Index
    },
    {
        path: '',
        name: '',
        component: Index
    },
    {
      path: '/index',
      name: 'index',
      component: Index
    },
    {
      path:'/codelogin',
      name:'codelogin',
      component:codelogin,
        meta:{
            title: '登录'
        }
    },
    {
      path: '/traderDetail',
      name: 'traderDetail',
      component: TraderDetail
    },{
      path: '/author',
      name: 'author',
      component: Author
    },{
      path: '/my',
      name: 'my',
      component: My
    },{
      path: '/register',
      name: 'register',
      component: Register
    },{
      path: '/register1',
      name: 'register1',
      component: Register1
    },{
      path: '/register99',
      name: 'register99',
      component: Register99
    },{
      path: '/all',
      name: 'all',
      component: All
    },{
      path: '/history',
      name: 'history',
      component: HistoryObj
    },{
      path: '/chosepay',
      name: 'chosepay',
      component: Chosepay
    },{
      path: '/vip',
      name: 'vip',
      component: Vip
    },{
      path: '/zhihuivip',
      name: 'zhihuivip',
      component: zhihuivip
    },{
      path: '/recommend',
      name: 'recommend',
      component: Recommend
    },{
      path: '/tuijian',
      name: 'tuijian',
      component: Tuijian
    },{
      path: '/zhihuijingli',
      name: 'zhihuijingli',
      component: zhihuijingli
    },{
      path: '/qrcodeTuijian',
      name: 'qrcodeTuijian',
      component: QrcodeTuijian
    },{
      path: '/qrcodeVipTuijian',
      name: 'qrcodeVipTuijian',
      component: QrcodeVipTuijian
    },{
      path: '/tuiguang',
      name: 'tuiguang',
      component: Tuiguang
    },{
      path: '/payOrder',
      name: 'payOrder',
      component: PayOrder
    },{
      path: '/recharge',
      name: 'recharge',
      component: Recharge
    },{
      path: '/tixian',
      name: 'tixian',
      component: Tixian
    },{
      path: '/profile',
      name: 'profile',
      component: Profile
    },{
      path: '/city',
      name: 'city',
      component: City
    }
  ]
});

